package main

import "fmt"

func test1() {
	var a [10]int

	// j := 9
	a[0] = 100
	// a[j] = 200

	fmt.Println(a)

	for i := 0; i < len(a); i++ {
		fmt.Println(a[i])
	}

	for index, val := range a {
		fmt.Printf("a[%d]=%d ", index, val)

	}
	fmt.Println()
}

func test2() {
	var a [10]int
	b := a

	b[0] = 100
	fmt.Println(a)
}
func main() {
	test1()
	fmt.Println("-------------------------")
	test2()
}
